<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:true">
		<table cellpadding="5">
			<input id="matchCollaboratorId${(matchProjectItem.id)!}" name="id" type="hidden" value="${(matchCollaboratorItem.id)!}" />
			<input id="matchCollaboratoProjectId${(matchProjectItem.id)!}" name="matchProjectId" type="hidden" value="${(matchProjectItem.id)!}" />
			<tr>
				<td>
					${(matchProjectItem.matName)!}
				</td>
			</tr>
			
			<tr>
				<td class="tbLabel">伙伴名称:</td>
				<td>
					<input id="matchCollaboratoName${(matchProjectItem.id)!}" name="name"  class="easyui-validatebox textbox" data-options="required: false" value="${(matchCollaboratorItem.name)!}"/>
				</td>
			</tr>
			<tr>
				<td class="tbLabel">封面路径:</td>
				<td>
					<input id="matchCollaboratoLogopath${(matchProjectItem.id)!}" name="logoPath"  class="easyui-validatebox textbox" data-options="required: false" value="${(matchCollaboratorItem.logoPath)!}"/>
				</td>
			</tr>
			<tr>
				<td class="tbLabel">单位或伙伴介绍:</td>
				<td>
					<textarea id="matchCollaboratoCollDesc${(matchProjectItem.id)!}" style="width: 615px; height: 60px;" class="easyui-validatebox" data-options="required: false" name="collDesc">${(matchCollaboratorItem.collDesc)!}</textarea>
				</td>
			</tr>
		</table>
	</div>
	<div data-options="region:'south',border:false">
		<div style="padding:3px 0;border-top:1px solid #95B8E7;text-align: center;">
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="saveMatchCollaborator${(matchProjectItem.id)!}()">保存</a>
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="skipMatchCollaboratorLook(${(matchCollaboratorItem.id)!''})">预览</a>
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="">发布</a>
	    </div>
	</div>
</div>

<script>
//保存合作伙伴
function saveMatchCollaborator${(matchProjectItem.id)!}() {
	var collDesc = $('#matchCollaboratoCollDesc${(matchProjectItem.id)!}').val();
	
	var id = $('#matchCollaboratorId${(matchProjectItem.id)!}').val();
	
	var matchProjectId = $('#matchCollaboratoProjectId${(matchProjectItem.id)!}').val();
	
	var logoPath = $('#matchCollaboratoLogopath${(matchProjectItem.id)!}').val();
	
	var name =$('#matchCollaboratoName${(matchProjectItem.id)!}').val();// matchCollaboratoName${(matchProjectItem.id)!}
	var data = {id:id,matchProjectId:matchProjectId,logoPath:logoPath,collDesc:collDesc,name:name};
		printLog(data);
	  $.post('matchCollaborator.do?saveMatchCollaborator',data,function(result){
	       showMsg(result.msg);
	  },'json');
	
}

//预览跳转
function skipMatchCollaboratorLook(id) {
	if(id&&id>0) {
		window.open('cms.action?skip&navCode=sshdXq&subNav=hzhb&sshdId='+id);
	}else {
		showMsg('请先保存更新');
	}
	
}
</script>

